package org.domain.rescue2011.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

import es.us.isa.jdbl.domain.biblio.GuestEditorial;
import es.us.isa.jdbl.domain.biblio.PaperInConference;

@Name("paperInConferenceHome")
public class PaperInConferenceHome extends EntityHome<PaperInConference>{

	public void setPaperInConferenceNid(Integer id) {
		setId(id);
	}

	public Integer getPaperInConferenceNid() {
		return (Integer) getId();
	}

	@Override
	protected PaperInConference createInstance() {
		PaperInConference paperInConference = new PaperInConference();
		return paperInConference;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public PaperInConference getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	
}
